﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepartmentEdit.aspx.cs" Inherits="PPAP.Web.Master.DepartmentEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head >
    <title></title>
    <script type="text/javascript">
        function check() {
            var testitem = document.getElementById("txtDepartment").value;
            var remark = document.getElementById("txtDescription").value;
            if (testitem == "") {
                alert("Department is null");
                return false;
            }
            if (remark == "") {
                alert("Description is null");
                return false;
            }
            return confirm('Are you sure you want to save?');
        }
    </script>
</head>
<body  style="font-family: Arial, Helvetica, sans-serif;overflow-x:hidden; "  bgcolor="#E7E8E8">
    <form id="form1" runat="server">
    <div>
    <table  align="center" width="60%" style="margin-top:10px;">
    <tr><td>
        Department
        </td><td>
            <asp:TextBox ID="txtDepartment" runat="server" Width="280px"></asp:TextBox><font color='red'>*</font>
        </td></tr><tr><td>
            Description
        </td><td>
            <asp:TextBox ID="txtDescription" runat="server" Height="70px" TextMode="MultiLine" 
                    Width="280px"></asp:TextBox><font color='red'>*</font>
        </td></tr>
    
    <tr><td colspan="2" align="center"><asp:Button ID="Button1" CssClass="button" runat="server" 
            Text="Add" onclick="Button1_Click" 
            onclientclick="return check();" /></td></tr></table>
    </div>
    </form>
</body>
</html>
